package common.util;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;


public class DateUtil 
	{
        private Calendar calendar;
        
        public DateUtil()
        {
                calendar = new GregorianCalendar();
                Date trialTime = new Date();
                calendar.setTime(trialTime);
        }
        
        public int getMonth()
        {
                return calendar.get(Calendar.MONTH)+1;
        }
        
        public int getYear()
        {
                return calendar.get(Calendar.YEAR);
        }
        
        public int getDay()
        {
                return calendar.get(Calendar.DAY_OF_MONTH);
        }
}